package com.ym.medical.dao;

import com.ym.medical.domain.entity.MindEntity;
import com.ym.medical.domain.param.MindQueryMobileParam;
import com.ym.medical.domain.param.TdRecordExampleParam;
import com.ym.medical.domain.vo.MindListMobileVO;
import com.ym.medical.domain.vo.MindVo;
import com.ym.medical.domain.vo.ToMindTdRecordVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 心意Dao接口
 *
 * @author ym
 * @date 2020-09-02
 */
@Repository
public interface MindDao extends Mapper<MindEntity>{

	List<MindListMobileVO> selectListMobile(MindQueryMobileParam mindModel);

	/**
	 * PC端-账务系统 送心意记录展示
	 * @param tdRecordExampleVO 搜索条件构造
	 * @return
	 */
	List<ToMindTdRecordVO> listMindRecord(TdRecordExampleParam tdRecordExampleVO);

	/**
	 * 患者感谢医生
	 * @param currId
	 * @param ioId
	 * @return
	 */
	MindVo selectMind(
			@Param("currId")Long currId,
			@Param("ioId") Long ioId);
}
